//
//  FTTodayScoreView.m
//  FaceTo
//
//  Created by 姚冬元 on 2017/8/9.
//  Copyright © 2017年 chengbangming. All rights reserved.
//

#import "FTTodayScoreView.h"

@implementation FTTodayScoreView

- (instancetype)init
{
    self = [super init];
    if (self) {
        
        [self initUI];
    }
    return self;
}

- (void)initUI
{
    self.backgroundColor = [UIColor whiteColor];
    
    CGFloat circleWidth = kSCREEN_WIDTH/2.5;
    _circle = [[XLCircleProgress alloc] initWithFrame:CGRectMake(kSCREEN_WIDTH/2 -kSCREEN_WIDTH/5, 60, circleWidth, circleWidth)];
    _circle.progress = 0.5;
    [self addSubview:_circle];
    
    UILabel *lbl1 = [[UILabel alloc] init];
    lbl1.text = @"今日累计积分：200分";
    lbl1.textAlignment = NSTextAlignmentCenter;
    lbl1.textColor = FontColor;
    lbl1.font = LPFont(13);
    [self addSubview:lbl1];
    
    
    UILabel *lbl2 = [[UILabel alloc] init];
    lbl2.text = @"今日累计时间";
    lbl2.textAlignment = NSTextAlignmentCenter;
    lbl2.textColor = FontColor;
    lbl2.font = LPFont(13);
    [self addSubview:lbl2];

    [lbl1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.mas_centerX);
        make.top.offset(kSCREEN_WIDTH/2.5 + 80);
    }];
    
    [lbl2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.mas_centerX);
        make.top.offset(30);
    }];
}

@end
